package com.muyu.system.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;


/**
 * 商品对象 danmo_shopping_products
 *
 * @author yangle
 * @date 2024-09-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class DanmoShoppingProducts extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品唯一id
     */
    private Long id;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String name;

    /**
     * 父商品类型
     */
    @Excel(name = "父商品类型")
    private Long categoryType;

    /**
     * 子商品类型
     */
    @Excel(name = "子商品类型")
    private Long subcategoryType;

    /**
     * 关联商铺ID
     */
    @Excel(name = "关联商铺ID")
    private Long flahship;

    /**
     * 关联商铺名称
     */
    @Excel(name = "关联商铺名称")
    private String flahshipName;

    /**
     * 旗舰店Logo
     */
    private String logoUrl;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal price;

    /**
     * 原价
     */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /**
     * 商品描述
     */
    @Excel(name = "商品描述")
    private String description;

    /**
     * 库存量
     */
    @Excel(name = "库存量")
    private Long stock;

    /**
     * 评分
     */
    @Excel(name = "评分")
    private Long rating;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String picture;
    /**
     * 销量
     */
    @Excel(name = "销量")
    private Long sales;

    /**
     * 规格名称
     */
    @Excel(name = "规格名称")
    private String skuName;

    /**
     * 类型价格
     */
    @Excel(name = "类型价格")
    private BigDecimal skuPrice;

    /**
     * 类型id
     */
    @Excel(name = "类型id")
    private BigDecimal product_id;

    /**
     * 评价数量
     */
    @Excel(name = "评价数量")
    private Long reviewCount;

    /**
     * 产品数量
     */
    @Excel(name = "产品数量")
    private Long skuStock;

    /**
     * 配送
     */
    @Excel(name = "配送")
    private String distribution;


    /**
     * 用户购买数量，默认为1
     */
    @Excel(name = "用户购买数量，默认为1")
    private Long quantity;

    /**
     * 是否收藏
     */
    @Excel(name = "是否收藏")
    private String isCollect;

    /**
     * 发货地址
     */
    private String shippingAddress;

    /**
     * 是否包邮
     */
    private String posExpress;

    /**
     * 邮费
     */
    private BigDecimal freight;

    /**
     * 评分
     */
    private Double score;

    /**
     * 商品规格
     */
    @Excel(name = "商品规格")
    private Long productSpecifications;
    private Integer pageNum = 1;
    private Integer pageSize = 10;

    /**
     * 商品图片信息
     */
    private List<DanmoShoppingProductsPicture> danmoShoppingProductsPictureList;

    /**
     * 商品类型信息
     */
    private List<DanmoShoppingSku> danmoShoppingSkuList;

    /**
     * 商品门头信息
     */
    private List<DanmoShoppingDoor> danmoShoppingDoorList;

    /**
     * 商品规格
     */
    private List<DanmoShoppingSpecification> danmoShoppingSpecificationList;

    /**
     * 产品评论对象
     * @return
     */
    private List<DanmoShoppingReviews> danmoShoppingReviewsList;

    /**
     * 旗舰店
     * @return
     */
    private DanmoShoppingFlagship danmoShoppingFlagship;

    /**
     * 推荐商品
     * @return
     */
    private List<DanmoShoppingProducts> danmoShoppingProducts;

//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setName(String name)
//    {
//        this.name = name;
//    }
//
//    public String getName()
//    {
//        return name;
//    }
//    public void setCategoryType(Long categoryType)
//    {
//        this.categoryType = categoryType;
//    }
//
//    public Long getCategoryType()
//    {
//        return categoryType;
//    }
//    public void setSubcategoryType(Long subcategoryType)
//    {
//        this.subcategoryType = subcategoryType;
//    }
//
//    public Long getSubcategoryType()
//    {
//        return subcategoryType;
//    }
//    public void setFlahship(Long flahship)
//    {
//        this.flahship = flahship;
//    }
//
//    public Long getFlahship()
//    {
//        return flahship;
//    }
//    public void setPrice(BigDecimal price)
//    {
//        this.price = price;
//    }
//
//    public BigDecimal getPrice()
//    {
//        return price;
//    }
//    public void setDescription(String description)
//    {
//        this.description = description;
//    }
//
//    public String getDescription()
//    {
//        return description;
//    }
//    public void setStock(String stock)
//    {
//        this.stock = stock;
//    }
//
//    public String getStock()
//    {
//        return stock;
//    }
//    public void setRating(String rating)
//    {
//        this.rating = rating;
//    }
//
//    public String getRating()
//    {
//        return rating;
//    }
//    public void setReviewCount(String reviewCount)
//    {
//        this.reviewCount = reviewCount;
//    }
//
//    public String getReviewCount()
//    {
//        return reviewCount;
//    }
//
//    public List<DanmoShoppingProductsPicture> getDanmoShoppingProductsPictureList()
//    {
//        return danmoShoppingProductsPictureList;
//    }
//
//    public void setDanmoShoppingProductsPictureList(List<DanmoShoppingProductsPicture> danmoShoppingProductsPictureList)
//    {
//        this.danmoShoppingProductsPictureList = danmoShoppingProductsPictureList;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("categoryType", getCategoryType())
                .append("subcategoryType", getSubcategoryType())
                .append("flahship", getFlahship())
                .append("price", getPrice())
                .append("description", getDescription())
                .append("stock", getStock())
                .append("rating", getRating())
                .append("reviewCount", getReviewCount())
                .append("picture", getPicture())
                .append("sales", getSales())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("danmoShoppingProductsPictureList", getDanmoShoppingProductsPictureList())
                .toString();
    }
}
